#! /usr/bin/env node
/* #! /usr/bin/env node 

const {program}=require('commander')
const inquire = require('inquirer')

const promp=[
    {
        type:'list',
        message:"请选择行业？",
        name:'data',
        choices:[
            {
                name:'javascript',
                value:1
            },
            {
                name:'go',
                value:2
            }
        ]
    },
    {
        type:'list',
        message:"工作类型？",
        name:'data',
        choices:[
            {
                name:'web',
                value:3
            },
            {
                name:'node',
                value:3
            }
        ]
    },
    {
        type:'list',
        message:"工作类型？",
        name:'data',
        choices:[
            {
                name:'python',
                value:3
            },
            {
                name:'docker',
                value:3
            }
        ]
    },
    {
        type:'input',
        message:"请输入期望薪资",
        name:'money'
    }
]
program
    .version('1.0.0')
    .option('-a --add','add file')
    .action(name=>{
        inquire.prompt(promp[0]).then(res=>
            {
                inquire.prompt(promp[res.data]).then(res1=>
                    {
                        inquire.prompt(promp[res1.data]).then(res2=>
                            {
                                console.log(res2);
                            })
                    })
            })
    })
    .parse(process.argv) */
    const path=require('path')
    console.log(process.argv.slice(2));
    console.log(process.cwd());
    console.log(path.join(process.cwd(),process.argv.slice(2)[0]));